/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package grundlagen.Vererbung;

/**
 *
 * @author dgreipl
 */
public class B extends A{
    int b;

    B(){
        b = 0;
    }

    public void setB(int x){ b = x;}
    public int getB(){ return b;}
    public void doVerdoppelnB() { b = 2*b;}

}
